scale: cache pango layouts for mark labels
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 27 Mar 2016 02:07:36 +0000 (19:07 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Sun, 27 Mar 2016 05:43:53 +0000 (22:43 -0700)
commitb9899102935c801892d131031f2f92e752239dfa
tree580f3678d6066295af0f5c74c3efd23262dbe274
parent7e15ac8927ec5b5b89dd1f36e3996dc2af9a62b2
scale: cache pango layouts for mark labels

Constantly creating pango layouts while drawing means that animations
will be slow. Instead, cache the pango layout in the mark structure.
gtk/gtkscale.c